package com.passbook.merchant.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("merchants")
public class Merchant implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 商户 id 主键
     */
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    /**
     * 商户名称 且全局唯一
     */

    @TableField(value = "name")
    private String name;

    /**
     * 商户 logo
     */

    @TableField(value = "logo_url")
    private String logoUrl;

    /**
     * 商户营业执照
     */

    @TableField(value = "business_license_url")
    private String businessLicenseUrl;

    /**
     * 商户联系电话
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 商户地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 商户是否通过审核
     */
    @TableField(value = "is_audit")
    private boolean isAudit = false;
}
